package com.stone;

import com.stone.controller.TestA;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotatedBeanDefinitionReader;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * SpringBootApplication : 来标注一个主程序类，说明这是一个 Spring Boot 应用
 */
@SpringBootApplication
//@EnableDiscoveryClient
public class StoneExampleSpringBootApplication {
    public static void main(String[] args) {
        // Spring 应用启动起来
        ConfigurableApplicationContext context = SpringApplication.run(StoneExampleSpringBootApplication.class, args);


        Object bean = context.getBean("helloController");
        System.err.println(bean);

        new AnnotationConfigApplicationContext("");

    }
}
